/*
 * @Author: your name
 * @Date: 2021-11-15 14:05:18
 * @LastEditTime: 2021-11-15 14:15:00
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /a1902-apractical2/my-react-dome/src/store/actions.js
 */

export const ASYNC_SET_NAME = 'ASYNC_SET_NAME';
export const SET_NAME = 'SET_NAME';

/**
 * @description: 首页的接口请求
 * @param {*}
 * @return {*}
 */
export const actionsSetName = () => {
    return (dispatch) => {
        setTimeout(() => {
            dispatch({type: ASYNC_SET_NAME})
        }, 2000)
    }
}
